package com.smartcommunity.dao.villageGroup;

import com.smartcommunity.entity.villagegroup.VillageGroup;
import com.smartcommunity.entity.villagegroup.VillageGroupDevice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface VillageGroupDao {

    public void addGroup(VillageGroup villageGroup);

    public void removeGroup(@Param("id") Long id);

    public void updateGroup(VillageGroup villageGroup);

    public void batchAddGroupDevice(@Param("list")List<VillageGroupDevice> list);

    public void deleteDevice(@Param("deviceIds") List<String> deviceIds,@Param("groupIds") List<Long> groupIds);

    public List<VillageGroup> listGroup(@Param("villageCodes") String villageCodes,@Param("haveDevice")boolean haveDevice,@Param("haveCamera")boolean haveCamera);

    public void deleteDeviceByGroup(@Param("id") Long id);

    public void deleteCameraByGroup(@Param("id") Long id);
}
